/**
 * @ Author: luoqi
 * @ Create Time: 2024-04-17 22:26
 * @ Modified by: luoqi
 * @ Modified time: 2024-07-18 18:22
 * @ Description:
 */

#ifndef _FLASH_H
#define _FLASH_H

#include <stdint.h>

int flash_init(void);

int flash_write(uint32_t addr, const uint8_t *data, int len);

int flash_read(uint32_t addr, uint8_t *data, int len);

int flash_erase(uint32_t addr, int len);

#endif
